using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using User.Models;
using UserSorce.Entity.Models;

namespace User.Service
{
    public class MatterServiceModels
    {
        public List<MattersModels> TurnOffMatter(List<Matter> matters)
        {
            List<MattersModels> mattersModel = new List<MattersModels>();
          
            foreach(var item in matters)
            {
                MattersModels matter = new MattersModels() {
                OverTime = item.OverTime,
               CreatTime = item.CreatTime,
               MatterContent = item.MatterContent,
               MatterId = item.MatterId,
               Remark = item.Remark,
                IsFinished = item.IsFinished
                };
                mattersModel.Add(matter);
            }
            return mattersModel;
        }
    }
}
